<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en" class="panel-fit" >
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@include file="commons/taglibs.jsp" %>
		<%@include file="commons/jquery.jsp" %>
		<%@include file="commons/bootstrap.jsp" %>
		<link rel="stylesheet" type="text/css" href="${base_file}/css/myLayout.css" />
		<title>${initParam.title}</title>
		<script type="text/javascript">
			var uId=${sessionScope.SESSION_USER_KEY.id};
		</script>
	</head>
<body>
		<div class="navbar navbar-default" id="navbar">
			<div class="container-fluid">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
							<i class="fa fa-coffee"></i>
							智能报价系统
						</small>
					</a>
				</div>
				<div class="navbar-header pull-right">
			      <ul class="my-nav">
			        <li class="dropdown">
			          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
			            <img class="nav-user-photo" src="${base}/resources/images/user.jpg" />
						<span class="user-info">
							<small>Welcome,</small>
							${sessionScope.SESSION_USER_KEY.userName}
						</span>
						<i class="fa fa-caret-down"></i>
			          </a>
 			          <ul class="dropdown-menu pull-right dropdown-caret" role="menu">
						<li>
							<a href="javascript:void(0);" id="toUpdPwd"> 
								<i class="fa fa-cog"></i>系修改密码
							</a>
						</li>
						<li>
							<a href="javascript:void(0);" id="toUserInfo"> 
								<i class="fa fa-user"></i> 用户信息
							</a>
						</li>
						<li class="divider"></li>
						<li>
							<a href="javascript:void(0);" id="toLogout"> 
								<i class="fa fa-power-off"></i> 注销系统
							</a>
						</li>
			          </ul>
			        </li>
			      </ul>
				</div><!-- /.navbar-header -->
			</div><!-- /.container-fluid" -->
		</div>
		<div class=".container-fluid">
				<!-- 左侧菜单栏 -->
				<div class="sidebar" id="sidebar">
					<ul class="nav nav-list">
					  <c:forEach items="${sessionScope.SESSION_USER_POWER}" var="rpOne" varStatus="sta">
					    <c:if test="${rpOne.fatherId eq 0}">
							<li>
								<a href="#" class="dropdown-toggle">
									<i class="${rpOne.iconCls}" ></i>
									 <span class="menu-text"> ${rpOne.powerName}</span>
									<i class="fa fa-angle-down arrow"></i>
								</a>
								<ul class="submenu">
								  <c:forEach items="${sessionScope.SESSION_USER_POWER}" var="rpTwo" varStatus="sta">
								    <c:if test="${rpTwo.fatherId == rpOne.id}">
									  <li>
										<a href="#" onclick="toMenu('${rpTwo.url}','${rpTwo.powerCode}','center','${rpTwo.powerName}',this);">
												<i class="fa  fa-angle-double-right"></i>${rpTwo.powerName}
										</a>
									  </li>
								    </c:if>
								  </c:forEach>
								</ul>
							</li>
					  	</c:if>
					  </c:forEach>
					</ul><!-- /.nav-list -->
					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="fa fa-angle-double-left" data-icon1="fa-angle-double-left" data-icon2="fa-angle-double-right"></i>
					</div>
				</div>
				<!-- 右侧主页面 -->
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<ul class="breadcrumb">
							<li>
								<i class="fa fa-home home-icon"></i>
								<a href="javascript:void(0);">首页</a>
							</li>
						</ul>
					</div>
					<!-- 主内容页div -->
					<div class="page-content" id="page_content">
						<iframe name="centerIframe" id="centerIframe" src="admin/index" allowTransparency="true" 
							style="border:0;width:100%;height:99%;padding:0;" frameBorder="0" scrolling="yes"></iframe>
					</div>
				</div>
		</div><!-- /.main-container -->
		<script src="${base_file}/js/myLayout.js"></script>
		<script src="${base_file}/js/common/MD5.js"></script>
		<script src="${base_file}/js/index.js"></script>
</body>
</html>